<?session_start();
$fecha = date("d")."-".date("m")."-".date("Y");
include ("../conectarse.php");
$paso1 = $_POST['paso1'];

$cantidad = $_POST['cantidad'];
if($paso1!="1"){$cantidad = $_SESSION['cantidad'];}
$_SESSION['cantidad'] = $cantidad;

?>
<body bgcolor = "#005F8C" alink = "white" vlink = "white" link = "white" text = "white">
<table width  ="100%" height = "100%" cellpadding = "0" cellspacing = "0">

<tr valign = "top">

<td align = "center">

<!--BARRA                    -->

<?include ("./barra/barramutual.php");?>

<!-- FIN DE LA BARRA                    -->
</td>


</tr>


<tr valign = "top" height = "100%"><td align = "left">

<!-- CUERPO DEL SISTEMA -->
<table cellpadding = "0" cellspacing = "0" border  ="0" height = "100%">
<tr valign = "middle"><td bgcolor = "black">


<?include ("links.php");?>



<!-- FIN DEL CUERPO DEL SISTEMA -->








</td><td width = "100%" ALIGN = "CENTER"><br>

<table height = "100%"><TR valign="top"><TD>
<table border ="2" cellspacing = "0" cellpadding = "0" bordercolor = "white">
<tr><td>




        <table><tr><td colspan  ="4"></td></tr>

  <tr><td colspan  = "4" align="center"><b>FONDO</td></tr>
  
  <tr><td colspan  = "4"><hr></td></tr>
 






<?for ($i=0;$i<$cantidad;$i++){
	$inversoractual = "inversor".$i;
	$idinversoractual = $_COOKIE[$inversoractual];

	$consulta = "select * from inversores where inv_id like $idinversoractual";
$resultado = @mysql_query($consulta);
$fila = @mysql_fetch_array($resultado);
	$nombreactual = $fila['inv_nombre'];
	$apellidoactual =  $fila['inv_apellido'];
	$documentoactual =  $fila['inv_dni'];
	?>


<tr><td>Inversor <?echo $i+1;?><?if($i==0){echo "(Responsable)";}?>:</td><td colspan = "3"><input type = "text" disabled = "disabled" value = "<?echo $nombreactual." ".$apellidoactual." (Dni: ".$documentoactual." )";?>" size = "50">
<a href = "buscarinv.php?pos=<?echo $i;?>" target = "_Blank"><button>X</button></a></td></tr>

<?}?>


<form action = "nuevofondo3.php" method = "POST">
                <tr><td colspan  ="4"><hr></td></tr>
 
<tr><td colspan = "1">

Nombre de fondo:

</td>
<td colspan = "3">
<input type = "text" name = "nombrefondo" size = "50">


</td></tr>
<tr><td colspan = "1">

Tipo de participacion:

</td>
<td colspan = "3">

<select name ="tipoparticipacion" style = "width:324px;">
<option value = "0">Administracion</option>
<option value = "1">Comercializacion</option>
<option value = "2">Ambas</option>

</td></tr>

<tr><td colspan = "1">

Interes:

</td>
<td colspan = "3">
<input type = "text" name = "interes">

</td></tr>

<tr><td colspan = "1">

Importe:

</td>
<td colspan = "3">
<input type = "text" name = "importe">

</td></tr>

<tr><td colspan = "1">

Porcentaje:

</td>
<td colspan = "3">
<input type = "text" name = "rendimiento">

</td></tr>

<tr><td colspan = "1">

Fecha inicial:

</td>
<td colspan = "3">
<input type = "text" name = "fecha1" size = "1">
<input type = "text" name = "fecha2" size = "1">
<input type = "text" name = "fecha3" size = "2">

</td></tr>

<tr><td colspan = "1">

Fecha final:

</td>
<td colspan = "3">
<input type = "text" name = "fecha4" size = "1">
<input type = "text" name = "fecha5" size = "1">
<input type = "text" name = "fecha6" size = "2">

</td></tr>





<input type = "hidden" name = "cantidad2" value = "<?echo $cantidad;?>">


  <tr><td colspan  = "4" align = "right"><input type = "submit" value = "Aceptar"></td></tr>









</form></tr></table>












</TD></TR></table>




















</td></tr></table>




























</td>
</td></tr>

</table>
